<?php
/**
 * 描述：企业商铺-资质证书。
 */
final class Exec_Store_Licence extends Exec_Store_Public
{
    public function Get()
    {
        #获取参数
        $account=parent::Get();

        #获取供应信息数据
        $licences=DB::PGetData('select * from licence where Account=? order by Datetime desc limit 0,12',array($account['Username']));
        foreach($licences['Record'] as $key=>$value)
        {
            $licences['Record'][$key]['PicturePath']=Config::PATH_RELATIVE_ATTACHMENT_TEMP.'/'.$licences['Record'][$key]['PicturePath'];
        }
        View::Assign('Supplies',$licences['Record']);
        View::Assign('PageMenu',PagerFactory::Create('Common')->Fetch($licences,array('URL'=>'exec.php?action=store_licence&id='.$account['ID'],'IsDetail'=>TRUE)));

        #渲染输出
        View::Display('store/licence.tpl');
    }
}
?>